home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
SYS
/
s
/
LhArcDir
< prev
next >
Wrap
AmigaDOS Script File
|
1996-09-26
|
675b
|
25 lines
.key Dir/A,DestDir/A,Pattern
.bra {
.ket }
.def Pattern="#?"
Echo "Archiving:'{Dir}' in '{DestDir}' with '{Pattern}'"
CD "{Dir}"
CD /
Set HomeDir `CD`
Set HomeDir `TackOn "$HomeDir" ""` ; add the ending "/" if neccesary
Set ArcDir `BaseName "{Dir}"`
Set ArcPathName `TackOn "{DestDir}" "$ArcDir"`
FailAt 21 ;Don't stop script if a command failed
;LhA [-options] <Command> <Archive> [[HomeDir] FileSpec] [@file] [destdir]
$LhArc -a -r -x a "$ArcPathName" "$HomeDir" "$ArcDir.info" "$ArcDir/{Pattern}"
IF $RC GT 0
Echo "Error during compression of {Dir}."
Say "Error during compression of {Dir}."
Ask "Press RETURN..."
ELSE
Say "Compression of {Dir} finished."
EndIf